package com.artpri.model;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * DeliverAdd entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "deliver_add", catalog = "jpw")
public class DeliverAdd implements java.io.Serializable {

	// Fields

	private Integer addressNum;
	private Integer userNum;
	private String addressName;
	private String daName;
	private String daEmail;
	private String daAddress;
	private String daPhonenum;
	private String daFixphonenum;
	private String daRegion;
	private String daPostcode;
	private Integer ifdefault;
	private Timestamp createTime;

	// Constructors

	/** default constructor */
	public DeliverAdd() {
	}

	/** minimal constructor */
	public DeliverAdd(Integer userNum, String daName, String daAddress,
			String daPhonenum, String daRegion, String daPostcode) {
		this.userNum = userNum;
		this.daName = daName;
		this.daAddress = daAddress;
		this.daPhonenum = daPhonenum;
		this.daRegion = daRegion;
		this.daPostcode = daPostcode;
	}

	/** full constructor */
	public DeliverAdd(Integer userNum, String addressName, String daName,
			String daEmail, String daAddress, String daPhonenum,
			String daFixphonenum, String daRegion, String daPostcode,
			Integer ifdefault, Timestamp createTime) {
		this.userNum = userNum;
		this.addressName = addressName;
		this.daName = daName;
		this.daEmail = daEmail;
		this.daAddress = daAddress;
		this.daPhonenum = daPhonenum;
		this.daFixphonenum = daFixphonenum;
		this.daRegion = daRegion;
		this.daPostcode = daPostcode;
		this.ifdefault = ifdefault;
		this.createTime = createTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "address_num", unique = true, nullable = false)
	public Integer getAddressNum() {
		return this.addressNum;
	}

	public void setAddressNum(Integer addressNum) {
		this.addressNum = addressNum;
	}

	@Column(name = "user_num", nullable = false)
	public Integer getUserNum() {
		return this.userNum;
	}

	public void setUserNum(Integer userNum) {
		this.userNum = userNum;
	}

	@Column(name = "address_name", length = 50)
	public String getAddressName() {
		return this.addressName;
	}

	public void setAddressName(String addressName) {
		this.addressName = addressName;
	}

	@Column(name = "da_name", nullable = false, length = 10)
	public String getDaName() {
		return this.daName;
	}

	public void setDaName(String daName) {
		this.daName = daName;
	}

	@Column(name = "da_email", length = 50)
	public String getDaEmail() {
		return this.daEmail;
	}

	public void setDaEmail(String daEmail) {
		this.daEmail = daEmail;
	}

	@Column(name = "da_address", nullable = false, length = 100)
	public String getDaAddress() {
		return this.daAddress;
	}

	public void setDaAddress(String daAddress) {
		this.daAddress = daAddress;
	}

	@Column(name = "da_phonenum", nullable = false, length = 15)
	public String getDaPhonenum() {
		return this.daPhonenum;
	}

	public void setDaPhonenum(String daPhonenum) {
		this.daPhonenum = daPhonenum;
	}

	@Column(name = "da_fixphonenum", length = 15)
	public String getDaFixphonenum() {
		return this.daFixphonenum;
	}

	public void setDaFixphonenum(String daFixphonenum) {
		this.daFixphonenum = daFixphonenum;
	}

	@Column(name = "da_region", nullable = false, length = 50)
	public String getDaRegion() {
		return this.daRegion;
	}

	public void setDaRegion(String daRegion) {
		this.daRegion = daRegion;
	}

	@Column(name = "da_postcode", nullable = false, length = 10)
	public String getDaPostcode() {
		return this.daPostcode;
	}

	public void setDaPostcode(String daPostcode) {
		this.daPostcode = daPostcode;
	}

	@Column(name = "ifdefault")
	public Integer getIfdefault() {
		return this.ifdefault;
	}

	public void setIfdefault(Integer ifdefault) {
		this.ifdefault = ifdefault;
	}

	@Column(name = "create_time", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

}